package io.github.biezhi.elves.service;

import java.util.List;

import io.github.biezhi.elves.sgggzy.model.SgBiddingList;
import io.github.biezhi.elves.sgggzy.model.SgDownloadBiddingHtml;
import io.github.biezhi.elves.sgggzy.model.SgRecordBiddingNotice;

public interface SgggzyService {

	/**
	 * 保存佛山记录各个网址网址数据
	 * @param sgRecordBiddingNotice
	 */
	void saveSgRecordBiddingNotice(SgRecordBiddingNotice sgRecordBiddingNotice);

	/**
	 * 查看相同noticeDetailUrl条数
	 * @param noticeDetailUrl
	 * @return
	 */
	Integer countByUrl(String noticeDetailUrl);

	/**
	 * 根据公告类型和发布日期查询记录表
	 * @param noticeType
	 * @param pubdate
	 * @return
	 */
	List<SgRecordBiddingNotice> findRecordByNoticeTypeAndDate(String noticeType, String date);

	/**
	 * 保存SgDownloadBiddingHtml对象到t_download_sg表中
	 * @param sgDownloadBiddingHtml
	 */
	void saveSgDownloadBiddingHtml(SgDownloadBiddingHtml sgDownloadBiddingHtml);

	/**
	 * 查看相同noticeDetailUrl条数
	 * @param noticeDetailUrl
	 */
	Integer countByDownloadUrl(String noticeDetailUrl);

	/**
	 * 查询t_download_sg表所有数据
	 * @return
	 */
	List<SgDownloadBiddingHtml> listDownloadHtml();

	/**
	 * 新增sgbiddingList对象
	 * @param sgbiddingList
	 */
	void saveSgBiddingList(SgBiddingList sgBiddingList);

	/**
	 * 根据TabType查询SgDownloadBiddingHtml
	 * @return
	 */
	List<SgDownloadBiddingHtml> listDownloadHtmlByTabType(String tabType);

}
